using System.Data.Entity.ModelConfiguration;
using IT.CMS.Core.Domain.Sites;

namespace IT.CMS.Data.Mapping.Sites
{
    public partial class SiteMap : EntityTypeConfiguration<Site>
    {
        public SiteMap()
        {
            this.ToTable("_ItCms_Core_Site");
            this.HasKey(s => s.Id);
            this.Property(s => s.Name).IsRequired().HasMaxLength(400);
            this.Property(s => s.Url).IsRequired().HasMaxLength(400);
            this.Property(s => s.SecureUrl).HasMaxLength(400);
            this.Property(s => s.Hosts).HasMaxLength(1000);
        }
    }
}